package com.hmy.infrastructure.api.client.oss;

import com.hmy.ccp.common.result.FeignResult;
import com.hmy.infrastructure.api.bo.response.oss.OssSignatureResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("hmy-ccp-infrastructure")
public interface OssClient {
    /**
     * 获取阿里云OSS临时认证
     *
     * @return OssCredentialsResponse 返回临时认证数据
     */
    @GetMapping("/feign/oss/signature")
    FeignResult<OssSignatureResponse> getSignature(@RequestParam String dir);



}
